<section class="container_6 clearfix">
<div id="<?php echo $type?>">
<fieldset class="form grid_6">
<legend><?php echo $type ?></legend>
<table id="tulist">
<tr><th>Login</th><th>Name</th><th>Status</th></tr>
<?php 
foreach ($ulist as $u)
{
    
        echo '<tr>';
        if($u['User']['active'] == 0)
        {
            $status = 'Inactive';
        }
        else
        {
            $status = 'Active';
        }
        echo '<td>'. $this->Html->link($u['User']['email_address'], '/users/uprofile/'. $u['User']['id']) . '</td><td>'. $u['User']['fname'] . ' ' . $u['User']['lname'] . '</td><td>' . $status . '</td></tr>' ; //'<a href="../users/uprofile/' . $u['User']['id'] . '">' . $u['User']['fname'] . ' ' . $u['User']['lname']. ' ' . $u['User']['email_address']. '</a><br />';
    
}
?>
</table>
</fieldset>
</div>
</section>